Validate_[LocaleName]
[ class tree: Validate_[LocaleName] ] [ index: Validate_[LocaleName] ] [ all elements ]

Class: Validate_

Source Location: /Validate-0.8.2/docs/Example_Locale.php

Class Overview


Data validation class for the [LocaleName]


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 [Your name]

Methods


Inherited Variables

Inherited Methods


Class Details

[line 46]
Data validation class for the [LocaleName]

This class provides methods to validate:

  • SSN
  • Postal code
  • Telephone number



[ Top ]


Method Detail

phoneNumber   [line 100]

bool phoneNumber( string $number)

Validate a phone number

[Further info goes here]

  • Return: true on success false on failure
  • Author: [Your name] <example@example.org>
  • Access: public

Parameters:

string   $number     the tel number

[ Top ]

postalCode   [line 60]

bool postalCode( string $postcode, [bool $strong = false])

validates a postcode

[Further info goes here]

  • Return: true on success false on failure
  • Author: [Your name] <example@example.org>
  • Access: public

Parameters:

string   $postcode     the postcode to be validated
bool   $strong     optional; strong checks (e.g. against a list of postcodes) (not implanted)

[ Top ]

ssn   [line 80]

bool ssn( string $ssn)

Validates a social security number

[Further info goes here]

  • Return: true on success false on failure
  • Author: [Your name] <example@example.org>
  • Access: public

Parameters:

string   $ssn     SSN

[ Top ]


Documentation generated on Fri, 13 Feb 2009 13:00:21 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.